package com.zzl.bonds.ticket;

/**
 * @author : spp
 * @date : 2022/2/16 11:17
 */

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @author spp
 * @Classname BondsTicketApplication
 * @Description 启动类
 */
@SuppressWarnings("javadoc")
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 18000)
@ComponentScan("com.zzl")
@EnableHystrix
@MapperScan("com.zzl.bonds.ticket.dao")
public class BondsTicketApplication {
    public static void main(String[] args) {
        SpringApplication.run(BondsTicketApplication.class, args);
    }
}
